﻿using System;

namespace HslCommunication.Reflection
{
	/// <summary>
	/// 对应redis的一个列表信息的内容
	/// </summary>
	// Token: 0x02000111 RID: 273
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
	public class HslRedisListItemAttribute : Attribute
	{
		/// <summary>
		/// 列表键值的名称
		/// </summary>
		// Token: 0x1700051B RID: 1307
		// (get) Token: 0x060017C3 RID: 6083 RVA: 0x0007896B File Offset: 0x00076B6B
		// (set) Token: 0x060017C4 RID: 6084 RVA: 0x00078973 File Offset: 0x00076B73
		public string ListKey { get; set; }

		/// <summary>
		/// 当前的位置的索引
		/// </summary>
		// Token: 0x1700051C RID: 1308
		// (get) Token: 0x060017C5 RID: 6085 RVA: 0x0007897C File Offset: 0x00076B7C
		// (set) Token: 0x060017C6 RID: 6086 RVA: 0x00078984 File Offset: 0x00076B84
		public long Index { get; set; }

		/// <summary>
		/// 根据键名来读取写入当前的列表中的单个信息
		/// </summary>
		/// <param name="listKey">列表键名</param>
		/// <param name="index">当前的索引位置</param>
		// Token: 0x060017C7 RID: 6087 RVA: 0x0007898D File Offset: 0x00076B8D
		public HslRedisListItemAttribute(string listKey, long index)
		{
			this.ListKey = listKey;
			this.Index = index;
		}
	}
}
